#ifndef User_h
#define User_h

#include "xml.h"

class CUser{
public:
	//int m_UserId;
	const char * m_UserName;//user name
	const char * m_UserPassword;//user password

	bool m_Tray;//is tray or not
	bool m_AutoLogin;//is auto login or not
	bool m_AutoUpdate;//is auto update;
	bool m_suspend;//is suspend

	bool m_LimitRate;// is limit backup rate
	int m_MaxRate;//backup's max rate

	int m_UserCPUage;// cpu's max status
	long m_UserIdleTime;//user idle time

	bool m_AutoBackUp;//is auto backup
	bool m_WeekBackUp;//is backup by weeks
	int m_BackTimes;//max backup times per day
	int m_BackWeeks;//how weeks backup per time
	int m_BackWDay;//backup at week days
	int m_backHours;//how many hours backup once

	bool m_BackFinishHint;//is when backup finish giving ahint
	bool m_BackStartHint;//is when backup start giving a hint
	bool m_BackSpaceHint;//is when backup space lack giving a hint

private:
	char * m_FileName;
	XMLNode m_MainNode;
public:
	void load_user_info();
};

extern CUser g_User;
#endif